#pragma once

#ifndef MAX_PATH
#define MAX_PATH 260
#endif
/*
#ifndef GET_X_LPARAM
#define GET_X_LPARAM(lp)                        ((int)(short)LOWORD(lp))
#endif
#ifndef GET_Y_LPARAM
#define GET_Y_LPARAM(lp)                        ((int)(short)HIWORD(lp))
#endif


#ifndef _WINDEF_

typedef  void			VOID;
typedef  void*			LPVOID;
typedef  int            HINSTANCE;  
typedef  int            HWND;  
typedef  int            HGLOBAL;  
typedef  int            HANDLE;  
typedef  unsigned char  BYTE;
typedef  unsigned long  DWORD;
typedef  unsigned long  ULONG;
typedef  unsigned int   UINT;
typedef  unsigned int   BOOL;
typedef  unsigned short USHORT;
typedef  unsigned short u_short;
typedef  unsigned short WORD;
typedef  long           LONG;
typedef  int 			INT;
typedef  int            WPARAM;  
typedef  int            LPARAM;  
typedef  char * 		LPSTR;
typedef  const char * 	LPCSTR;
typedef  const char * 	LPCTSTR;
typedef  unsigned long  COLORREF;
typedef  unsigned int	UINT_PTR, *PUINT_PTR;

#define  FALSE   0
#define  TRUE    1

typedef struct tagRECT
{
	LONG    left;
	LONG    top;
	LONG    right;
	LONG    bottom;
} RECT, *PRECT;

typedef const RECT * LPCRECT;

typedef struct tagPOINT
{
	LONG  x;
	LONG  y;
} POINT, *PPOINT;

typedef struct tagSIZE
{
	LONG        cx;
	LONG        cy;
} SIZE, *PSIZE;

#endif // _WINDEF_

#ifndef WM_USER
#define WM_USER                         0x0400 
#endif

#ifndef max
#define max(a,b)            (((a) > (b)) ? (a) : (b))
#endif

#ifndef min
#define min(a,b)            (((a) < (b)) ? (a) : (b))
#endif

#ifndef RGB
#define RGB(r,g,b)          ((COLORREF)(((BYTE)(r)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(b))<<16)))
#define GetRValue(rgb)      ((BYTE)(rgb))
#define GetGValue(rgb)      ((BYTE)(((WORD)(rgb)) >> 8))
#define GetBValue(rgb)      ((BYTE)((rgb)>>16))
#endif

#ifndef CLR_NONE
#define CLR_NONE 0xffffffffL
#endif

#ifndef MAX_PATH
#define MAX_PATH 260
#endif
*/
